﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Sotipha.Web.Views.Home
{
    public partial class ucFeature2 : System.Web.UI.UserControl
    {
        public string ProductType = "1";
        CFeatureProctuct CFeature = new CFeatureProctuct();
        protected void Page_Load(object sender, EventArgs e)
        {
            int GroupID = -1;
            if (Request.QueryString["GroupID"] != null)
                int.TryParse(Request.QueryString["GroupID"].ToString(), out GroupID);
            switch (ProductType)
            {
                case "1":
                    ltrProductType.Text = "products care for";
                    if (Session["lang"].ToString() == "vi")
                        ltrProductType.Text = "Sản phẩm chăm sóc";
                    ltrProductGroup.Text = CFeature.GetProductType("1", GroupID, "Towntalk");
                    break;
                case "3":
                    ltrProductType.Text = "Gifts";
                    if (Session["lang"].ToString() == "vi")
                        ltrProductType.Text = "Quà tặng";
                    ltrProductGroup.Text = CFeature.GetProductType("3", GroupID, "Gifts");
                    break;
                case "2":
                    ltrProductType.Text = "Handicraft Wares";
                    if (Session["lang"].ToString() == "vi")
                        ltrProductType.Text = "Sản phẩm mỹ nghệ";
                    ltrProductGroup.Text = CFeature.GetProductType("2", GroupID, "LacquerWare");
                    break;
            }
        }
    }
}